﻿using System;
namespace Meeting.Model
{
    /// <summary>
    /// 投票选项表
    /// </summary>
    [Serializable]
    public partial class VoteItem
    {
        public VoteItem()
        { }

        #region Model
        private int _id;
        private int _voteid;
        private int _sort;
        private string _value;
        /// <summary>
        /// 主键
        /// </summary>
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 投票主键（外键）
        /// </summary>
        public int VoteId
        {
            set { _voteid = value; }
            get { return _voteid; }
        }
        /// <summary>
        /// 选项排序
        /// </summary>
        public int Sort
        {
            set { _sort = value; }
            get { return _sort; }
        }
        /// <summary>
        /// 选项内容
        /// </summary>
        public string Value
        {
            set { _value = value; }
            get { return _value; }
        }

        #endregion Model

        #region 附加属性
        /// <summary>
        /// 选择此投票选项的人数
        /// </summary>
        public int SelectedCount
        {
            get;
            set;
        }

        /// <summary>
        /// 选择此项人数所占百分比
        /// </summary>
        public string SelectedPer
        {
            get;
            set;
        }
        #endregion
    }
}

